package com.xuecheng.teaching.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xuecheng.api.teaching.model.dto.CourseWorkRecDTO;
import com.xuecheng.api.teaching.model.dto.WorkDTO;
import com.xuecheng.api.teaching.model.qo.QueryWorkModel;
import com.xuecheng.common.domain.page.PageRequestParams;
import com.xuecheng.common.domain.page.PageVO;
import com.xuecheng.api.teaching.model.dto.WorkRecordDTO;
import com.xuecheng.api.content.model.dto.CoursePubDTO;
import com.xuecheng.api.teaching.model.dto.WorkDTO;
import com.xuecheng.api.teaching.model.dto.WorkRecordDTO;
import com.xuecheng.api.teaching.model.qo.QueryWorkModel;
import com.xuecheng.common.domain.page.PageRequestParams;
import com.xuecheng.common.domain.page.PageVO;
import com.xuecheng.teaching.entity.WorkRecord;

import com.xuecheng.teaching.entity.WorkRecord;

/**
 * <p>
 * 作业提交记录 服务类
 * </p>
 *
 * @author itcast
 */
public interface WorkRecordService extends IService<WorkRecord> {
    /**
     *
     * @param workRecordDTO  作业记录dto
     * @return
     */
    WorkRecordDTO createOrWorkRecord(WorkRecordDTO workRecordDTO , String username);



    /**
     * 批阅详情
     * @param companyId 公司id
     * @param courseWorkId 课程作业提交id
     * @return CourseWorkRecDTO
     */
    CourseWorkRecDTO readOverAll(Long companyId, String courseWorkId);

    /**
     * 作业批改意见提交
     * @param workRecordDTO WorkRecordDTO 存储学生提交(回答)的作业内容
     * @param companyId  Long 机构id
     * @return
     */
    WorkRecordDTO submitWorkRecord(WorkRecordDTO workRecordDTO, Long companyId);

    /**
     * 根据workId查询课程计划作业填写请况
     * @param workId  Long 工作id
     * @param username  String 用户名
     * @return
     */
    WorkDTO queryWorkRecord(Long workId, String username);


    void createCourseWorkRecByCourseId(CoursePubDTO dto,Integer count);
}
